/**
 * SearchNearByItem
 */

 import consts from "../../../../../consts/consts";
 import React,{Component} from "react";
 
 class SearchNearByItem extends Component{
    handleOnOpenDialog(){
//        var root = this.props.root;
//        var data = this.props.data;
//        root.openDialog(consts.DIALOG_TYPE.NEARBY, false, data);
        const {data} = this.props;
        console.log("open dialog");
    }
    render(){
        const {data} = this.props;
        return (
            <input name="serch_nearby" type="text" readOnly onFocus={() => this.handleOnOpenDialog() } value={ data.action.search_nearby } />
        )
    }
 }

 module.exports = SearchNearByItem;
